package paquete;


import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(endpointInterface = "paquete.PathFinderInterface")
public class PathFinder implements PathFinderInterface {

	@WebMethod
	public String getPath(String source, String target) {
		// TODO retornar el camino
	System.out.println("source: "+source+", target: "+target);
		
	if (source.equals("38B") & target.equals("B")){
		System.out.println("entre");
		return "[{ tipo : 'plano'," +
				" id : 'Alem/Ala_A'," +
				" puntos: [	" +
					"{'x': 98.0,'y': -449.0}," +
					"{'x': 313.0,'y': -448.0}," +
					"{'x': 496.0,'y': -449.0}," +
					"{'x': 507.0,'y': -255.0}," +
					"{'x': 685.0,'y': -253.0}" +
				"]}]";
	}
			
			
	
	return "queres ir desde "+source+ " a "+target+" ?";
	}

}